#' @param loss.type Loss function which the algorithm tries to minimize. Defaults to \code{logistic}
#'   for classification and \code{squared} for regression.
